﻿namespace Dyao.Book.Contract
{
    /// <summary>
    /// 任务中心-动作名称模型
    /// </summary>
    public class TaskCenterCodeDto
    {
        public TaskCenterCodeDto(string taskCode, string displayname)
        {
            if (taskCode is null)
            {
                throw new ArgumentNullException(nameof(taskCode));
            }

            TaskCode = taskCode;
            DisplayName = displayname;
        }

        /// <summary>
        /// TaskCode
        /// </summary>
        public string TaskCode { get; }

        /// <summary>
        /// 动作显示名称
        /// </summary>
        public string DisplayName { get;}
    }
}
